<template>
    <div>
      <el-button type="primary" @click="open">简单弹窗</el-button>
      <my-dialog :visible.sync="visible" target="body" title="标题文字" width="400px" height="200px">
        这里是内容
      </my-dialog>
    </div>
</template>

<script>
import MyDialog from '$ui/components/my-dialog'
export default {
  data() {
    return {
      visible: false
    }
  },
  methods: {
    open() {
      this.visible = true
    }
  },
  components:{
      MyDialog
  }
}
</script>